package com.xq.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.Date;

/**
 * (BizProduct)表实体类
 *
 * @author makejava
 * @since 2020-08-11 19:47:18
 */
@SuppressWarnings("serial")
@Data
@TableName("biz_product")
public class BizProduct extends Model<BizProduct> {
    //序号
    @TableField("id")
    private Long id;
    //商品编号
    @TableField("p_num")
    private String pNum;
    //商品名称
    @TableField("name")
    private String name;
    //图片
    @TableField("image_url")
    private String imageUrl;
    //规格型号
    @TableField("model")
    private String model;
    //计算单位
    @TableField("unit")
    private String unit;
    //备注
    @TableField("remark")
    private String remark;
    //排序
    @TableField("sort")
    private Integer sort;
    //创建时间
    @TableField("create_time")
    private Date createTime;
    //修改时间
    @TableField("modified_time")
    private Date modifiedTime;
    //1级分类
    @TableField("one_category_id")
    private Long oneCategoryId;
    //2级分类
    @TableField("two_category_id")
    private Long twoCategoryId;
    //3级分类
    @TableField("three_category_id")
    private Long threeCategoryId;
    //是否删除:1物资正常,0:物资回收,2:物资审核中
    @TableField("status")
    private Integer status;

    /*--------外表---------*/
    //数量
    @TableField(exist = false,value = "number")
    private Integer number;

}